package com.wechat.scheme.repo.mapper;


import com.wechat.scheme.entity.WxButton;
import com.wechat.scheme.entity.model.WxButtonMo;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper(componentModel = "spring")
public interface WxbutMapper {

    WxButtonMo entityToDTO(WxButton entity);
    WxButton DTOToEntity(WxButtonMo entity);
    void updateEntityFromDto(WxButtonMo callChannelDTO, @MappingTarget WxButton entity);

    List<WxButtonMo> transferList2DTO(List<WxButton> list);

    WxbutMapper INSTANCE = Mappers.getMapper(WxbutMapper.class);
}
